package org.example.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.bean.Discount;
import org.example.util.JsonResult;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:DiscountService
 * @Date:2025/8/19 9:51
 */
@Service
public interface DiscountService extends IService<Discount> {
    //更新与添加
    JsonResult SaveOrUpdate(Discount discount,String token);

    //查找设置折扣率
    JsonResult findDiscountPriceByBookId(String bookId);
}
